<?php

namespace App\Model;


/**
 * App\DeviceFaultLog
 *
 * @property int $id
 * @property int $device_id
 * @property string|null $remark 备注
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property-read \App\Model\Device $device
 */
class DeviceFaultLog extends Model
{
    //
    public bool $timestamps = true;
    protected ?string $table = 'device_fault_logs';
    protected array $guarded = [
        'id'
        // 列出所有不想被批量赋值的字段（黑名单）
        // 其他未列出的字段将允许批量赋值
    ];
    public function device()
    {
        return $this->belongsTo(Device::class,'id','device_id');
    }


}
